﻿
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace MenuGame2DXNA
{
    public class AutomatedSprite : Sprite
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="AutomatedSprite"/> class.
        /// </summary>
        /// <param name="_inputTexture">The _input texture.</param>
        /// <param name="_position">The _position.</param>
        public AutomatedSprite(Texture2D[] _inputTexture, Vector2 _position) : base(_inputTexture, _position)
        {
        }


        /// <summary>
        /// Initializes a new instance of the <see cref="AutomatedSprite"/> class.
        /// </summary>
        /// <param name="_inputTexture">The _input texture.</param>
        /// <param name="_position">The _position.</param>
        public AutomatedSprite(Texture2D _inputTexture, Vector2 _position)
            : base(_inputTexture, _position)
        {
        }
        public override void Update(GameTime gameTime)
        {
            currentFrame = (currentFrame + 1) % ntextture2d;
        }
    }
}
